package com.refusea.train.domain.helper

import com.refusea.train.config.mvc.WebSession
import com.refusea.train.domain.entity.User
import com.refusea.train.mapper.UserMapper
import org.springframework.stereotype.Component

/**
 * @author Zhang Yan 2024/4/2
 **/
@Component
class TeacherHelper(
    private val userMapper: UserMapper,
) {

    fun list(): List<User> {
        return userMapper.teachers(WebSession.user().schoolId)
    }
}
